#ifndef GLOBALCMDWIDGET_H
#define GLOBALCMDWIDGET_H

#include <qwidget.h>

class GlobalCmdWidget : public QWidget
{
    Q_OBJECT
public:
    explicit GlobalCmdWidget(int nParentID,QWidget *parent = nullptr);
    virtual ~GlobalCmdWidget();
private:
    void createBtns();
    void showSubCmdWidget(int nCurID);
    // QObject interface
protected:
    bool eventFilter(QObject *watched, QEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
protected:
    int  m_nParentID;
    GlobalCmdWidget * m_pSubCmdWidget;
};


#endif // GLOBALCMDWIDGET_H
